<?php
 class LoginManager
 {
    public function isLoggedIn()
	  {
	    session_start();
		$userStatus = $_SESSION["login"];
		return $userStatus;
	  }
	  
	 public function validateUser($userId,$password,$userType)
	   {
	      $login = false;
		  session_start();
	      if ($userId == "admin")
		    {
			   $login=true;
			   $_SESSION["login"] = true;
			   $_SESSION["statusMsg"]="";
			}else{
			  $_SESSION["statusMsg"] = "Invalid Id or Password";
			}
			
		  return $login;	
	   } 
 
 }


?>